package com.xbk.seckill.common.response;

import lombok.Data;

import java.io.Serializable;

/**
 * 响应的数据
 *
 * @author xiexu
 * @date 2025/1/11 07:46
 */
@Data
public class ResponseMessage<T> implements Serializable {

    private Integer code;
    private T data;

    public ResponseMessage() {
    }

    public ResponseMessage(Integer code, T data) {
        this.code = code;
        this.data = data;
    }

    public ResponseMessage(Integer code) {
        this.code = code;
    }

}
